#define _CRT_SECURE_NO_WARNINGS 1

#include "sort.h"

void Print(int* arr, int n)
{
	for (int i = 0; i < n; i++)
	{
		printf("%d ", arr[i]);
	}
	printf("\n");
}

int main()
{
	int arr[] = { 23,2,2,22,2,4,4,45,6,6,5,5,5,54234,65,3,5,3,5,5,5,5,5,5,5 };
	int n = sizeof(arr) / sizeof(arr[0]);
	Print(arr, n);


	HeapSort(arr, n);
	
	Print(arr, n);
	return 0;
}